package org.wwb.antbox.user.data.passport;

import org.ant.mybatis.mapper.IBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.wwb.antbox.user.model.rolemenu.view.RoleMenuListView;
import org.wwb.antbox.user.model.user.entity.SysUser;
import org.wwb.antbox.user.model.userrole.view.UserRoleListView;
import java.util.List;

/**
 * @Author Bond
 * @Date: 2019/10/29 22:14
 * @Description: 用户登录相关Mapper接口
 */
public interface PassportMapper extends IBaseMapper<SysUser, String> {

    /**
     * 获取用户角色关系集合
     * @param userId 用户Id
     * @return List<UserRoleListView>
     */
    List<UserRoleListView> getSysUserRoleList(@Param("userId") String userId);

    /**
     * 获取角色菜单关系集合
     * @param userId 用户Id
     * @return List<RoleMenuListView>
     */
    List<RoleMenuListView> getSysRoleMenuList(@Param("userId") String userId);

}
